package top.boycharse.blog.bean.Response;

import top.boycharse.blog.dao.bean.Classify;

public class ClassifyResponse {

    private Integer id;

    private String name;

    private String user;

    public ClassifyResponse(Classify classify) {
        this.id = classify.getId();
        this.name = classify.getName();
        this.user = classify.getUser().getUserName();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
}
